/* 好物剪影页面 - 高级美观设计 */
.auction-page {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* 背景层 */
.background-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(102, 126, 234, 0.4) 0%,
    rgba(118, 75, 162, 0.5) 50%,
    rgba(220, 53, 69, 0.4) 100%
  );
}

.bg-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
  animation: patternFloat 20s ease-in-out infinite;
}

@keyframes patternFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20rpx) rotate(1deg); }
}

/* 顶部导航栏 */
.top-navbar {
  position: relative;
  z-index: 10;
  padding: 60rpx 30rpx 20rpx;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20rpx);
  border-bottom: 1rpx solid rgba(255, 255, 255, 0.2);
  /* 添加安全区域适配 */
  padding-top: calc(60rpx + env(safe-area-inset-top));
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-title {
  display: flex;
  flex-direction: column;
}

.title-main {
  font-size: 48rpx;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.3);
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.title-sub {
  font-size: 24rpx;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 4rpx;
  font-weight: 300;
}

.nav-actions {
  display: flex;
  gap: 16rpx;
}

.nav-btn {
  width: 64rpx;
  height: 64rpx;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10rpx);
  border: 1rpx solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.nav-btn:active {
  transform: scale(0.9);
  background: rgba(255, 255, 255, 0.3);
}

.btn-icon {
  font-size: 28rpx;
}

/* 搜索区域 */
.search-section {
  position: relative;
  z-index: 10;
  padding: 20rpx 30rpx;
}

.search-container {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 24rpx;
  padding: 24rpx;
  box-shadow: 0 8rpx 32rpx rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(20rpx);
}

.search-box {
  display: flex;
  align-items: center;
  background: #f8f9fa;
  border-radius: 16rpx;
  padding: 16rpx 20rpx;
  margin-bottom: 20rpx;
  border: 2rpx solid transparent;
  transition: all 0.3s ease;
}

.search-box:focus-within {
  border-color: #667eea;
  background: #ffffff;
  box-shadow: 0 4rpx 16rpx rgba(102, 126, 234, 0.2);
}

.search-icon {
  font-size: 28rpx;
  color: #666;
  margin-right: 16rpx;
}

.search-input {
  flex: 1;
  font-size: 28rpx;
  color: #333;
  border: none;
  outline: none;
  background: transparent;
}

.search-clear {
  width: 32rpx;
  height: 32rpx;
  background: #e9ecef;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  font-size: 20rpx;
  cursor: pointer;
  transition: all 0.3s ease;
}

.search-clear:active {
  background: #dee2e6;
  transform: scale(0.9);
}

.search-tags {
  display: flex;
  gap: 12rpx;
  flex-wrap: wrap;
}

.tag {
  padding: 8rpx 16rpx;
  background: #f8f9fa;
  border-radius: 20rpx;
  font-size: 24rpx;
  color: #666;
  border: 2rpx solid transparent;
  transition: all 0.3s ease;
  cursor: pointer;
}

.tag.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  box-shadow: 0 4rpx 16rpx rgba(102, 126, 234, 0.3);
}

.tag:active {
  transform: scale(0.95);
}

/* 状态筛选标签 */
.status-tags {
  display: flex;
  gap: 12rpx;
  flex-wrap: wrap;
  margin-top: 16rpx;
}

.status-tag {
  padding: 8rpx 16rpx;
  background: #f8f9fa;
  border-radius: 20rpx;
  font-size: 24rpx;
  color: #666;
  border: 2rpx solid transparent;
  transition: all 0.3s ease;
  cursor: pointer;
}

.status-tag.active {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
  color: white;
  box-shadow: 0 4rpx 16rpx rgba(255, 107, 107, 0.3);
}

.status-tag:active {
  transform: scale(0.95);
}

.reset-btn {
  padding: 8rpx 16rpx;
  background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
  border-radius: 20rpx;
  font-size: 24rpx;
  color: white;
  border: 2rpx solid transparent;
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: 0 4rpx 16rpx rgba(108, 117, 125, 0.3);
}

.reset-btn:active {
  transform: scale(0.95);
  box-shadow: 0 2rpx 8rpx rgba(108, 117, 125, 0.4);
}

/* 主要内容区域 */
.main-content {
  position: relative;
  z-index: 5;
  padding: 0 30rpx 120rpx;
}

/* 统计信息栏 */
.stats-bar {
  display: flex;
  justify-content: space-around;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20rpx;
  padding: 24rpx;
  margin-bottom: 30rpx;
  box-shadow: 0 6rpx 24rpx rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(20rpx);
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 36rpx;
  font-weight: 700;
  color: #667eea;
  margin-bottom: 8rpx;
}

.stat-label {
  font-size: 22rpx;
  color: #666;
}

/* 商品列表 */
.items-list {
  display: flex;
  flex-direction: column;
  gap: 24rpx;
  margin-bottom: 40rpx;
}

/* 商品行 */
.item-row {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20rpx;
  overflow: hidden;
  box-shadow: 0 6rpx 24rpx rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(20rpx);
  transition: all 0.3s ease;
  position: relative;
  animation: cardSlideIn 0.6s ease-out;
  display: flex;
  min-height: 200rpx;
}

.item-row:active {
  transform: scale(0.98);
  box-shadow: 0 4rpx 16rpx rgba(0, 0, 0, 0.15);
}

.item-row.active {
  border: 2rpx solid #ff6b6b;
  box-shadow: 0 8rpx 32rpx rgba(255, 107, 107, 0.2);
}

.item-row.featured {
  border: 2rpx solid #ffd700;
  box-shadow: 0 8rpx 32rpx rgba(255, 215, 0, 0.2);
}

/* 左侧图片区域 */
.item-image-section {
  position: relative;
  width: 200rpx;
  height: 200rpx;
  flex-shrink: 0;
}

.item-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 状态标签 */
.item-status-badge {
  position: absolute;
  top: 12rpx;
  left: 12rpx;
  display: flex;
  flex-direction: column;
  gap: 8rpx;
}

.status-badge {
  width: 40rpx;
  height: 40rpx;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20rpx;
  color: white;
  box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.2);
}

.status-badge.active {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
}

.status-badge.pending {
  background: linear-gradient(135deg, #feca57 0%, #ff9ff3 100%);
}

.status-badge.ended {
  background: linear-gradient(135deg, #48dbfb 0%, #0abde3 100%);
}

.featured-badge {
  width: 40rpx;
  height: 40rpx;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20rpx;
  color: #333;
  box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.2);
}

/* 右侧信息区域 */
.item-info-section {
  flex: 1;
  padding: 24rpx;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* 商品标题 */
.item-title {
  font-size: 32rpx;
  font-weight: 600;
  color: #333;
  line-height: 1.4;
  margin-bottom: 12rpx;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 商品描述 */
.item-description {
  font-size: 26rpx;
  color: #666;
  line-height: 1.4;
  margin-bottom: 16rpx;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 商品标签 */
.item-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12rpx;
  margin-bottom: 16rpx;
}

.tag-item {
  padding: 6rpx 12rpx;
  border-radius: 12rpx;
  font-size: 22rpx;
  color: white;
}

.category-tag {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* 不同类别的标签背景色 */
.weapon-tag {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%)!important;
  box-shadow: 0 2rpx 8rpx rgba(255, 107, 107, 0.3)!important;
}

.pet-tag {
  background: linear-gradient(135deg, #48dbfb 0%, #0abde3 100%)!important;
  box-shadow: 0 2rpx 8rpx rgba(72, 219, 251, 0.3)!important;
}

.account-tag {
  background: linear-gradient(135deg, #feca57 0%, #ff9ff3 100%)!important;
  box-shadow: 0 2rpx 8rpx rgba(254, 202, 87, 0.3)!important;
}

.bid-tag {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
}

.view-tag {
  background: linear-gradient(135deg, #48dbfb 0%, #0abde3 100%);
}

/* 卖家信息 */
.seller-info {
  display: flex;
  align-items: center;
  gap: 12rpx;
  margin-bottom: 16rpx;
}

.seller-name {
  font-size: 24rpx;
  color: #666;
}

.seller-rating {
  font-size: 20rpx;
  color: #ffd700;
}

/* 价格信息 */
.price-info {
  margin-bottom: 16rpx;
}

.current-price {
  display: flex;
  align-items: baseline;
  gap: 4rpx;
  margin-bottom: 8rpx;
}

.price-symbol {
  font-size: 24rpx;
  color: #ff6b6b;
  font-weight: 600;
}

.price-value {
  font-size: 36rpx;
  font-weight: 700;
  color: #ff6b6b;
}

.price-unit {
  font-size: 22rpx;
  color: #666;
}

.price-details {
  display: flex;
  align-items: center;
  gap: 16rpx;
}

.start-price {
  font-size: 22rpx;
  color: #999;
}

.bid-count {
  font-size: 22rpx;
  color: #667eea;
}

/* 操作按钮 */
.item-actions {
  display: flex;
  justify-content: flex-end;
}

.action-btn {
  padding: 12rpx 24rpx;
  border-radius: 20rpx;
  border: none;
  font-size: 26rpx;
  font-weight: 600;
  color: white;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  box-shadow: 0 4rpx 16rpx rgba(102, 126, 234, 0.3);
  transition: all 0.3s ease;
}

.action-btn.bid {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
  box-shadow: 0 4rpx 16rpx rgba(255, 107, 107, 0.3);
}

.action-btn.wait {
  background: linear-gradient(135deg, #feca57 0%, #ff9ff3 100%);
  box-shadow: 0 4rpx 16rpx rgba(254, 202, 87, 0.3);
}

.action-btn:active {
  transform: scale(0.95);
}

/* 商品统计 */
.item-stats {
  display: flex;
  justify-content: space-around;
  padding: 16rpx 20rpx;
  border-top: 1rpx solid #f0f0f0;
  background: #fafafa;
}

.stat {
  display: flex;
  align-items: center;
  gap: 6rpx;
  font-size: 20rpx;
  color: #666;
}

.stat-icon {
  font-size: 18rpx;
}

.stat-value {
  font-weight: 500;
}

/* 空状态 */
.empty-state {
  text-align: center;
  padding: 120rpx 40rpx;
  color: rgba(255, 255, 255, 0.8);
}

.empty-icon {
  font-size: 120rpx;
  margin-bottom: 24rpx;
  opacity: 0.6;
}

.empty-title {
  display: block;
  font-size: 32rpx;
  font-weight: 600;
  margin-bottom: 12rpx;
  color: rgba(255, 255, 255, 0.9);
}

.empty-desc {
  display: block;
  font-size: 26rpx;
  margin-bottom: 32rpx;
  line-height: 1.5;
}

.empty-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 50rpx;
  padding: 20rpx 40rpx;
  font-size: 28rpx;
  font-weight: 600;
  box-shadow: 0 6rpx 24rpx rgba(102, 126, 234, 0.4);
}

/* 加载更多 */
.load-more {
  text-align: center;
  margin: 40rpx 0;
}

.load-more-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 50rpx;
  padding: 20rpx 60rpx;
  font-size: 28rpx;
  font-weight: 600;
  box-shadow: 0 6rpx 24rpx rgba(102, 126, 234, 0.4);
  display: flex;
  align-items: center;
  gap: 12rpx;
  margin: 0 auto;
}

.load-more-btn:active {
  transform: translateY(2rpx);
  box-shadow: 0 4rpx 16rpx rgba(102, 126, 234, 0.4);
}

/* 无更多数据 */
.no-more {
  text-align: center;
  padding: 60rpx 0;
}

.no-more-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16rpx;
}

.no-more-icon {
  font-size: 48rpx;
  opacity: 0.6;
}

.no-more-text {
  font-size: 26rpx;
  color: rgba(255, 255, 255, 0.7);
}

/* 浮动操作按钮 */
.fab-container {
  position: fixed;
  bottom: 120rpx;
  right: 30rpx;
  z-index: 100;
}

.fab-btn {
  width: 80rpx;
  height: 80rpx;
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8rpx 32rpx rgba(255, 107, 107, 0.4);
  transition: all 0.3s ease;
  border: 3rpx solid rgba(255, 255, 255, 0.3);
}

.fab-btn:active {
  transform: scale(0.9);
  box-shadow: 0 4rpx 16rpx rgba(255, 107, 107, 0.4);
}

.fab-icon {
  font-size: 32rpx;
  color: white;
}

/* 全局加载遮罩 */
.global-loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(10rpx);
}

.loading-content {
  text-align: center;
  color: white;
}

.loading-spinner-large {
  width: 80rpx;
  height: 80rpx;
  border: 6rpx solid rgba(255, 255, 255, 0.3);
  border-top: 6rpx solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20rpx;
}

.loading-text-large {
  font-size: 28rpx;
  font-weight: 500;
}

/* 响应式设计 */
@media (max-width: 750rpx) {
  .items-grid {
    grid-template-columns: 1fr;
    gap: 20rpx;
  }
  
  .main-content {
    padding: 0 20rpx 120rpx;
  }
  
  .top-navbar {
    padding: 50rpx 20rpx 20rpx;
  }
  
  .search-section {
    padding: 20rpx;
  }
  
  .search-container {
    padding: 20rpx;
  }
  
  .stats-bar {
    padding: 20rpx;
  }
  
  .stat-number {
    font-size: 32rpx;
  }
  
  .stat-label {
    font-size: 20rpx;
  }
}

/* 动画优化 */
.item-card:nth-child(1) { animation-delay: 0.1s; }
.item-card:nth-child(2) { animation-delay: 0.2s; }
.item-card:nth-child(3) { animation-delay: 0.3s; }
.item-card:nth-child(4) { animation-delay: 0.4s; }
.item-card:nth-child(5) { animation-delay: 0.5s; }
.item-card:nth-child(6) { animation-delay: 0.6s; }

/* 滚动条样式 */
::-webkit-scrollbar {
  width: 0;
  background: transparent;
}

/* 商品列表容器 */
.items-container {
  position: relative;
}

/* 加载状态 */
.loading-state {
  text-align: center;
  padding: 100rpx 0;
}

.loading-spinner {
  width: 60rpx;
  height: 60rpx;
  border: 4rpx solid rgba(102, 126, 234, 0.2);
  border-top: 4rpx solid #667eea;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20rpx;
}

.loading-text {
  font-size: 28rpx;
  color: rgba(255, 255, 255, 0.8);
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes cardSlideIn {
  from {
    opacity: 0;
    transform: translateY(40rpx);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
